package sg.edu.nus.iss.vmcs.ui.component.awt;

import sg.edu.nus.iss.vmcs.system.SimulatorControlPanel;
import sg.edu.nus.iss.vmcs.ui.component.BorderLayout;
import sg.edu.nus.iss.vmcs.ui.component.Dialog;
import sg.edu.nus.iss.vmcs.ui.component.Label;
import sg.edu.nus.iss.vmcs.ui.component.Panel;
import sg.edu.nus.iss.vmcs.ui.event.awt.AwtWindowAdapter;

public class AwtDialog extends java.awt.Dialog implements Dialog {

	public AwtDialog(SimulatorControlPanel owner, String title, boolean modal) {
		super(owner, title, modal);
	}

	private static final long serialVersionUID = 3269837106756076804L;

	@Override
	public void setLayout(BorderLayout borderLayout) {
		super.setLayout((java.awt.BorderLayout) borderLayout);
	}

	@Override
	public void add(String string, Label lb) {
		super.add(string, (java.awt.Label) lb);
	}

	@Override
	public void add(String string, Panel tp) {
		super.add(string, (java.awt.Panel) tp);
	}

	@Override
	public void addWindowListener(AwtWindowAdapter windowAdapter) {
		super.addWindowListener((java.awt.event.WindowAdapter) windowAdapter);
	}
	
}
